package cn.tedu.controller;/**
 * @Author 金帮嘉诚 @Date 2021-07-15 星期四 18:57
 */
/*本类用于测试*/

import cn.tedu.pojo.Student;
import cn.tedu.pojo.Student2;
import cn.tedu.pojo.Student3;
import cn.tedu.utils.StuTb;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**知识点*/
@RestController
@RequestMapping("/stu2/")
public class StuController {
    @CrossOrigin
    @RequestMapping("add")
    public Student add(Student student){
        return StuTb.insert(student);
    }

    @CrossOrigin
    @RequestMapping("add2")
    public Student2 add2(Student2 student2){
        return student2;
    }

    @RequestMapping("add3")
    public Student3 add3(Student3 student3){
        return student3;
    }
}
